<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form class="layui-form" method="post" th:action="@{/login}">
    <div class="layui-form-item">
        <div class="layui-form-label">用户名</div>
        <div class="layui-input-block">
            <input name="username" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-form-label">密码</div>
        <div class="layui-input-block">
            <input name="password" type="password">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-form-label">密码</div>
        <div class="layui-input-block">
            <input th:value="登录" type="submit">
        </div>
    </div>
</form>
</body>
</html>